<% if(typeof GA !== 'undefined' && GA) { %>
<script nonce="<%= cspNonce %>" async src="https://www.googletagmanager.com/gtag/js?id=<%= GA %>">
</script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '<%= GA %>');
gtag('event', 'page_view');
</script>
<% } %>
